/**
 * 
 */
package org.cuatrovientos.es;

import java.util.Vector;

/**
 * @author beatriz_sola
 *
 */
public class Parking {

	private Vector<Car> participants = new Vector<Car>();
	
	public void insertCar(Car threeCar) {
		participants.add(threeCar);
		
	}
	public void outputCar(Car threeCar){
		for (int i=0;i<participants.size();i++){
			if(participants.get(i).getName()==threeCar.getName()){
				participants.remove(i);
			}
		}
	}
	public void showCar(){
		
		for (int i=0;i<participants.size();i++){
			System.out.println(participants.get(i).toString());
				
	}
	}
	


}
